package com.lzy.pattern.singleton.demo6;

/**
 * @EnumName: Singleton
 * @Description: 单例设计模式：枚举方式，线程安全
 * @Author: LiuZy
 * @Date: 2022/4/9 21:02
 * @Version: 1.0
 */
public enum Singleton {

    INSTANCE;

    public void hello(){
        System.out.println("hello...");
    }
}
